<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="../include/taglib.jsp"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragrma","no-cache");
response.setDateHeader("Expires",0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>资源查看--IT综合监控系统</title>
    <%@ include file="../include/common.jsp"%>
    <link href="/bsm/style/default/bsm/tab.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/iframe.js"></script>
    <script type="text/javascript">
    	function setContent() {
			var windowHeight = getWindowHeight();
			var contentElement = document.getElementById('contentFrame');
			contentElement.style.height = (windowHeight - 30) + 'px';
		}
		function menuClick() {
			$(".selected").removeClass("selected");
			$(this).addClass("selected");
		}
    	$(document).ready(function() {
    		$('body').layout({
				center__paneSelector : ".inner-center",
				north__paneSelector : ".inner-north",
				north__size : 30,
				north__spacing_open:	0,
				south__spacing_open:	0,
				slidable : false,
				onopen_end : function() {
					var windowHeight = getWindowHeight();
					var contentElement = document
							.getElementById('contentFrame');
					contentElement.style.height = (windowHeight - 30) + 'px';
				},
				onclose_end : function() {
					var windowHeight = getWindowHeight();
					var contentElement = document
							.getElementById('contentFrame');
					contentElement.style.height = (windowHeight - 30) + 'px';
				}
			});
	$("#menu a").each(function() {
				$(this).bind('click', menuClick);
			});
});
    </script>
</head>
 <body>
			<div  id="menu" class="inner-north tabbar">
				<ul>
					<li id="baseLi" class="selected">
						<a id="baseA" href="/bsm/resource/res-query!viewres.action?id=${id}&pId=${pId}&viewId=${viewId}" target="contentFrame"><span>资源信息</span>
						</a>
					</li>
					<c:if test="${hasCombineConf}">
					<li id="appViewLi" >
						<a id="appViewA" href="/bsm/performance/real-time!combine.action?id=${id}&pId=${pId}&viewId=${viewId}" target="contentFrame"><span>综合呈现</span></a>
					</li>
					</c:if>
					<li id="appRelLi" >
						<a id="appRelA" href="/bsm/performance/real-time!common.action?id=${id}&pId=${pId}&viewId=${viewId}" target="contentFrame"><span>性能详细</span></a>
					</li>
					<c:if test="${hasRealConf}">
					<li id="eventLi" >
						<a id="eventA" href="/bsm/performance/real-time!chart.action?id=${id}&pId=${pId}&viewId=${viewId}" target="contentFrame"> <span>实时看板</span></a>
					</li>
					</c:if>
				</ul>
		<div class="clear"></div>
			</div>
		<div class="inner-center" >
			 <iframe  style="margin:0px; padding:0px;" src="/bsm/resource/res-query!viewres.action?id=${id}&pId=${pId}&viewId=${viewId}" id="contentFrame" name="contentFrame"  frameborder="0" width="100%" height="10px;" ></iframe>
		</div>
 </body>
</html>

